package advanced.sorm.bean;


/**
 * 封装了表中字段的信息
 *
 * @Version 0.8
 */
public class Columninfo {
    private String name;//字段名称
    private String dataType;//字段类型
    /**
     * 字段键类型
     * 0: 普通键
     * 1: 主键
     * 2: 外键
     */
    private int keyType;

    public Columninfo() {
    }

    public Columninfo(String name, String dataType, int keyType) {
        this.name = name;
        this.dataType = dataType;
        this.keyType = keyType;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDataType() {
        return dataType;
    }

    public void setDataType(String dataType) {
        this.dataType = dataType;
    }

    public int getKeyType() {
        return keyType;
    }

    public void setKeyType(int keyType) {
        this.keyType = keyType;
    }
}
